﻿using System;
using System.Collections.Generic;
using System.Diagnostics;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace ConsoleApp1
{
    class Program
    {
        static void Main(string[] args)
        {

            string str = "adacadcadaecrgecd";

            string[] sstr = str.Split('c');

            foreach(string b in sstr)
            {
                Console.WriteLine(b);
            }




            string a = "1小猪3giao奇4奥里给";

            string [] sa = a.Split(new char[3] { '1', '3', '4' });

            foreach (string p in sa) 

            Console.WriteLine(p.ToString());




            int[] u = { 5, 6, 1, 8, 15 };

            for(int i =0;i<u.Length;i++)
            {
                for(int j  =0;j<u.Length-i-1;j++)
                {
                    if(u[j]>u[j+1])
                    {
                        int temp = u[j];
                        u[j] = u[j + 1];
                        u[j + 1] = temp;

                    }
                }
                Console.WriteLine();
            }
            foreach(int t in u)

                Console.WriteLine(t.ToString());



        }
    }
}
